package baiqitun.stupro.api.model;

import baiqitun.stupro.common.model.TreeModel;
import baiqitun.stupro.security.entity.SysDepart;
import baiqitun.stupro.security.entity.SysPermission;
import baiqitun.stupro.security.entity.SysRole;
import baiqitun.stupro.security.model.vo.DepartVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 用户登录信息
 * @author kedaji
 */
@ApiModel("用户登录信息")
@Accessors(chain = true)
@Data
public class UserInfo implements Serializable {
    @ApiModelProperty("用户id")
    private String userId;
    @ApiModelProperty("用户名")
    private String username;
    @ApiModelProperty("真实姓名")
    private String name;
    @ApiModelProperty("头像")
    private String avatar;
    @ApiModelProperty("创建时间")
    private LocalDateTime createDateTime;
    @ApiModelProperty("许可信息")
    private RoleInfo role;
    @ApiModelProperty("所在部门")
    private List<SysDepart> departs;
}
